package com.xfatm.killer.entity;

import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;

/**
 * Created by wenjie on 2018/3/24.
 */

public class AppInfo implements Comparable{
    private String appName;
    private String packageName;
    private Drawable icon;
    private boolean isChecked;
    private boolean isSystem;
    private boolean hasActivity;
    private boolean isEnable;//是否已经启用

    public boolean isEnable() {
        return isEnable;
    }

    public void setEnable(boolean enable) {
        isEnable = enable;
    }

    public boolean isHasActivity() {
        return hasActivity;
    }

    public void setHasActivity(boolean hasActivity) {
        this.hasActivity = hasActivity;
    }

    public boolean isSystem() {
        return isSystem;
    }

    public void setSystem(boolean system) {
        isSystem = system;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public Drawable getIcon() {
        return icon;
    }

    public void setIcon(Drawable icon) {
        this.icon = icon;
    }

    @Override
    public int compareTo(@NonNull Object o) {
        AppInfo to=(AppInfo)o;
        return appName.compareTo(to.getAppName());
    }
}
